<template>
  <div class="container">
    <h2>事件修饰符</h2>
    <form action="">
      <input type="text" @keyup.enter="two">
      <button @click.prevent="one">按钮</button>
    </form>
  </div>
</template>

<script>
export default {
  // 这里放vue相关代码
  methods: {
    one () {
      console.log(123)
    },
    two () {
      console.log(456)
    }
  }
}
</script>

<style>
h2 {
  color: red;
}
</style>